package com.zhangfb95.crosschain.plugin.container.java.fabric2.infra.config.properties;

import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * web服务器配置项
 *
 * @author zhangfubing
 * @since 2023/10/17
 */
@Data
@Accessors(chain = true)
@Component
@ConfigurationProperties("biz.service.webserver")
public class WebServerProperties {

    /**
     * 端口
     */
    private Integer port;
    /**
     * ssl类型, none: 不开启, rsa: rsa, gm: 国密
     */
    private String sslType;
    /**
     * ssl根ca
     */
    private String caCert;
    /**
     * ssl key
     */
    private String sslKey;
    /**
     * ssl cert
     */
    private String sslCert;
}
